import React, { Component } from 'react';
import { render } from 'react-dom';

class Button extends Component {
  constructor(props) {
    super(props);
    this.state = {
      btnText: 'Hello,Webpack',
      title: 'Hello,Webpack',
    };
  }
  handleClick = () => {
    console.log('click button');
  };
  render() {
    return <button onClick={this.handleClick}>{this.state.btnText}</button>;
  }
}

render(<Button />, document.getElementById('app'));
